package collect.taobao.util.page;

import java.sql.ResultSet;

public class ValueBuild extends PageBuild{
	
	  private Class newClass;
	  
	  public ValueBuild(Class cls) {
		  newClass=cls;
	  }
	
	  public Object getObject(ResultSet rs)
	  {
		  Object v;
		  try {
			  v=newClass.newInstance();
			  ObjectChange.setValue(v,rs);
		  } catch (Exception e) {
			  v=null;
			  e.printStackTrace();
		  }
	     return v;
	 }
}
